import {
  request
} from "@/utils/request.js"
// 海报
export const apiGetBanner = () => {
  return request({
    url: '/homeBanner'
  })
}
// 随即壁纸
export const apiGetRandom = () => {
  return request({
    url: '/randomWall'
  })
}

// 获取公告
export const apiGetNotice = (data = {}) => {
  return request({
    url: '/wallNewsList',
    data
  })
}

// 获取壁纸分类
export const apiGetClassfiy = (data = {}) => {
  return request({
    url: '/classify',
    data
  })
}

// 获取分类中的壁纸列表
export const apiGetClassList = (data={}) => {
  return request({
    url:'/wallList',
    data
  })
}

// 获取壁纸详情
export const apiGetDetailWall = (data={}) =>{
  return request({
    url:'/detailWall',
    data
  })
}

// 评分
export const apiScore = (data={}) =>{
  return request({
    url:'/setupScore',
    data
  })
}

// 用户信息
export const apiUserInfo = (data={}) => {
  return request({
    url:'/userInfo'
  })
}